package main.java.org.service;

import main.java.Exam.pojo.Entity.Questtion;
import main.java.Exam.pojo.Entity.TestQuestion;
import main.java.Exam.pojo.Entity.exam;
import main.java.Exam.pojo.tableDTO.ClassTeacherDTO;
import main.java.Exam.pojo.tableDTO.ExamDTO;
import main.java.Exam.pojo.tableDTO.ExamPageDTO;
import main.java.org.result.Result;

import java.util.List;

public interface ExamService {
    void delete(ExamDTO examDTO);

    void createxam(ExamDTO examDTO);

    void bianjiexam(ExamDTO examDTO);
    //获取考试
    Result<ExamPageDTO> getexam(String userAccount);
    //给考生所有考试
    Result<ExamPageDTO> getuserexam();
  //获取单个考试
    exam getSigneleTest(Integer testId);

    List<Questtion> getQuestionsByExam(List<TestQuestion> testQuestions);
   //老师获取学生考试信息
    List<ClassTeacherDTO> getStudentExam(Integer teseId);
    //获取题目
 
    // AI自动批改题目
    int aiMark(Integer questionId, String answer,Integer testId,String userAccount);
}
